package com.example.design.generic.test02;

/**
 * @Description TODO
 * @date 2022/9/19 9:12
 * @Author liuzhihui
 * @Version 1.0
 */
public class People implements Action<String> {
    @Override
    public String eat(String food) {
        System.out.println(food);
        return food;
    }

    public static void main(String[] args) {
        People people = new People();
        people.eat("eat rice");
    }
}
